package server.data;

import java.io.Serializable;

/**
 *
 * @author Danon
 */
public class Link<T> implements Serializable {
    public final long serialVersionID = 1L;
    
    private int id;
    private String name;
    private T bandwidth;

    public Link(int id, String name, T bandwidth) {
        this.id = id;
        this.name = name;
        this.bandwidth = bandwidth;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getBandwidth() {
        return bandwidth;
    }

    public void setBandwidth(T bandwidth) {
        this.bandwidth = bandwidth;
    }
    
    @Override
    public String toString() {
        return "Link{name:" + name + "; id:"+id+"; bandwidth:"+bandwidth+"}";
    }
}
